#pragma once
#include <iostream>
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <gst/video/videooverlay.h>
#include <gst/video/gstvideodecoder.h>
using namespace std;

enum PlayEventType
{
	RecordDone,
	InfoMessage,
	ErrorMessage
};

class CGstreamerFilter
{
public:
	CGstreamerFilter();
	~CGstreamerFilter();
	int launch_avlog_pipeline(string & strFileUrl, void * hWndOverlay);
	void Stop();

	static void * m_hWndOverlay;
private:
	GstElement *m_pipeline;
	GMainLoop *m_main_loop;
};

